package o;

import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.huawei.hms.framework.common.ContainerUtils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@KeepForSdk
public final class aoz {

    @KeepForSdk
    public static final class d {
        private final Object ˊ;
        private final List<String> ˏ;

        private d(Object obj) {
            this.ˊ = apa.ˊ(obj);
            this.ˏ = new ArrayList();
        }

        @KeepForSdk
        public final d ॱ(String str, @Nullable Object obj) {
            List list = this.ˏ;
            String str2 = (String) apa.ˊ(str);
            String valueOf = String.valueOf(obj);
            list.add(new StringBuilder((String.valueOf(str2).length() + 1) + String.valueOf(valueOf).length()).append(str2).append(ContainerUtils.KEY_VALUE_DELIMITER).append(valueOf).toString());
            return this;
        }

        @KeepForSdk
        public final String toString() {
            StringBuilder append = new StringBuilder(100).append(this.ˊ.getClass().getSimpleName()).append('{');
            int size = this.ˏ.size();
            for (int i = 0; i < size; i++) {
                append.append((String) this.ˏ.get(i));
                if (i < size - 1) {
                    append.append(", ");
                }
            }
            return append.append('}').toString();
        }
    }

    @KeepForSdk
    public static boolean ॱ(@Nullable Object obj, @Nullable Object obj2) {
        return obj == obj2 || (obj != null && obj.equals(obj2));
    }

    @KeepForSdk
    public static int ॱ(Object... objArr) {
        return Arrays.hashCode(objArr);
    }

    @KeepForSdk
    public static d ˋ(Object obj) {
        return new d(obj);
    }
}
